home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / packages / hpux / makedist.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1999-09-15  |  933 b   |  40 lines

  1. #!/bin/sh
  2. #
  3. # makedist - make an hp-ux distribution.
  4. #
  5.  
  6. #
  7. # Since the HP-UX software distribution stuff doesn't directly support
  8. # symbolic links, we have the option of making an installation script that
  9. # creates symbolic links, or include files that are symbolic links in the
  10. # distribution.  Since we want this distribution to be relocatable, the
  11. # script method probably won't work and we have to make dummy link files...
  12. #
  13.  
  14. echo "Making links needed for distribution..."
  15.  
  16. rm -rf links
  17. mkdir links
  18.  
  19. for file in `cd ../../FL; ls *.H`; do
  20.     ln -sf $file links/`basename $file .H`.h
  21. done
  22.  
  23. ln -sf FL links/Fl
  24. ln -sf libfltk.sl.1 links/libfltk.sl
  25.  
  26. cd ../..
  27.  
  28. /usr/sbin/swpackage -v -s packages/hpux/fltk.info \
  29.     -d packages/hpux/fltk-1.0.5-hpux.depot -x write_remote_files=true \
  30.     -x target_type=tape fltk
  31.  
  32. echo "Compressing distribution..."
  33.  
  34. cd packages/hpux
  35.  
  36. rm -rf links
  37. rm -f fltk-1.0.5-hpux.depot.gz
  38. gzip -9 fltk-1.0.5-hpux.depot
  39.  
  40.